package com.jh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jh.entity.PdIdAndSizeType;
import com.jh.entity.ProductDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductDetailMapper extends BaseMapper<ProductDetail> {

    @Select("SELECT id as pdId,size_type from jh_clothing.product_detail where product_id=#{id} and status=1")
    List<PdIdAndSizeType> getPdIdAndSizeTypeData(Long id);




    void updateByOrderId(Long orderId);
}
